package com.ruoyi.pethosital.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 t_customer
 * 
 * @author ruoyi
 * @date 2023-09-04
 */
public class TCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 住址 */
    @Excel(name = "住址")
    private String address;

    /** 联系人名字 */
    @Excel(name = "联系人名字")
    private String contact;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNumber;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 用户启用状态，1为启用，0为禁用 */
    @Excel(name = "用户启用状态，1为启用，0为禁用")
    private Integer enable;

    /** 积分 */
    @Excel(name = "积分")
    private Integer integral;

    /** 累计消费金额 */
    @Excel(name = "累计消费金额")
    private Long consumerAmount;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String imgUrl;

    /** 上次消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次消费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumerTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }
    public void setIntegral(Integer integral) 
    {
        this.integral = integral;
    }

    public Integer getIntegral() 
    {
        return integral;
    }
    public void setConsumerAmount(Long consumerAmount) 
    {
        this.consumerAmount = consumerAmount;
    }

    public Long getConsumerAmount() 
    {
        return consumerAmount;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setConsumerTime(Date consumerTime) 
    {
        this.consumerTime = consumerTime;
    }

    public Date getConsumerTime() 
    {
        return consumerTime;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("address", getAddress())
            .append("contact", getContact())
            .append("phoneNumber", getPhoneNumber())
            .append("remarks", getRemarks())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("age", getAge())
            .append("enable", getEnable())
            .append("integral", getIntegral())
            .append("consumerAmount", getConsumerAmount())
            .append("imgUrl", getImgUrl())
            .append("consumerTime", getConsumerTime())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .toString();
    }
}
